﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class TaiKhoanBUS
    {
        public static bool ThemTaiKhoan(TaiKhoanDTO taikhoan)
        {
            return TaiKhoanDAO.ThemTaiKhoan(taikhoan);
        }

        public static bool XoaTaiKhoan(string username)
        {
            return TaiKhoanDAO.XoaTaiKhoan(username);
        }

        public static bool SuaThongTinTaiKhoan(TaiKhoanDTO taikhoan)
        {
            return TaiKhoanDAO.SuaThongTinTaiKhoan(taikhoan);
        }

        public static TaiKhoanDTO LayThongTinTaiKhoan(string username)
        {
            return TaiKhoanDAO.LayThongTinTaiKhoan(username);
        }

        public static List<TaiKhoanDTO> LayDanhSachTaiKhoan()
        {
            return TaiKhoanDAO.LayDanhSachTaiKhoan();
        }
    }
}
